-
Notifications
You must be signed in to change notification settings - Fork 65
Minor change to patch upgradeSpec with in-use devices in case they differ from discovered ones #2302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor change to patch upgradeSpec with in-use devices in case they differ from discovered ones #2302
Conversation
…ec if needed. This may be needed when running elemental upgrade in multipathd systems Signed-off-by: Gaurav Mehta <[email protected]>
…wnload, as some 3rd party packages are no longer available. the dependencies are already vendored so build wil leverage the same Signed-off-by: Gaurav Mehta <[email protected]>
Signed-off-by: Gaurav Mehta <[email protected]>
Do not execute test-deps target on PRs, the test is outdated on old branches. Signed-off-by: David Cassany <[email protected]>
Signed-off-by: David Cassany <[email protected]>
Signed-off-by: David Cassany <[email protected]>
Signed-off-by: David Cassany <[email protected]>
|
@ibrokethecloud I would appreciate if you could verify this PR is still solving the use case you were trying to fix. I did few minimalist changes to your patch which should be transparent (using internal |
|
on a test node using multipath devices using a build from the PR, I was able to complete an upgrade, the upgrade config gets updated to use the multipath'd devices |
Perfect! Then I am merging it 👍 |
When multipathing is enabled, the OS boots off the multipath /dev/mapper device
During upgrade elemental uses
jaypipes/ghwto find block devices from/sys/blocktree.This misses the multipath partitions, which can cause issue #2299
The PR introduces a minor change where once the UpgradeSpec is generated from parsing of
/sys/blocktree we lookup the result ofblkid -L $LABELto identify partition with label.This will result in the multipath partition being returned
For example from a sample multipath'd host
If the partition does not match the one generated from parsing
/sys/blockthen we update the upgrade spec to use the newly found partition.This PR is including all commits from #2300 and including few additional commits to fix and adapt unit and integration tests.
Fixes #2299